from flask import Flask, Response, render_template
from flask import request

app = Flask(__name__)


@app.route('/dingtalk/send/',methods=['POST'])
def hander_session():
    # print(request)
    if request.method=='POST':
        username = request.form['name']
        return "success",200,{"Content-Type":"application/json"}

@app.route('/input')
def index():
    return render_template("index.html")


if __name__ == '__main__':
    app.run()
    # app.run(host='0.0.0.0', port='8080')